import 'package:json_annotation/json_annotation.dart';

part 'tags.g.dart';

/// 标签列表 Request
class TagRequestEntity {
  String categoryCode;
  String channelCode;
  String tag;
  String keyword;
  String newsID;

  TagRequestEntity({
    required this.categoryCode,
    required this.channelCode,
    required this.tag,
    required this.keyword,
    required this.newsID,
  });
}

/// 标签列表 Response
@JsonSerializable()
class TagResponseEntity {
  String tag;

  TagResponseEntity({
    required this.tag,
  });

  factory TagResponseEntity.fromJson(Map<String, dynamic> json) =>
      _$TagResponseEntityFromJson(json);

  Map<String, dynamic> toJson() => _$TagResponseEntityToJson(this);
}
